package demo1;

public class Node<T> {

    T data;
    public void setData(T data){
        this.data=data;
    }



}


class StringNode extends Node{


    public void setData(String data){
        super.setData(data);
    }
}
